home *** CD-ROM | disk | FTP | other *** search
/ Tech Arsenal 1 / Tech Arsenal (Arsenal Computer).ISO / tek-01 / tcoop10a.zip / DOC.ZIP / NODE.DOC < prev    next >
Text File  |  1991-11-20  |  2KB  |  50 lines

  1. NODE.DOC        11/10/91        Copyright (c) 1991 by James S. Clark
  2. ==========================================================================
  3. NODE
  4. Node Class
  5. --------------------------------------------------------------------------
  6. Class Name                      Node
  7. Superclass                      <none>
  8. Category                        List
  9. Other classes referenced        <none>
  10. Other catagories referenced     <none>
  11. Used by                         List, Tree
  12. Inherited by                    Item
  13.  
  14. Declaration                     Node    *n = new Node;
  15. Instance Variables
  16.                                 Node    *next;
  17.                                 Node    *previous;
  18. Instance Methods
  19.                                 <none>
  20. --------------------------------------------------------------------------
  21. GENERAL DESCRIPTION
  22.  
  23. The Node Class provides the base class for creating linked lists and tree
  24. structures.  In itself the Node Class does little.  It provides pointers
  25. to the next and previous (or left and right) nodes in the list.  This
  26. simple class allows the creation of doubly-linked lists and binary trees.
  27.  
  28. The List and Tree classes are used to manipulate Nodes.
  29.  
  30. --------------------------------------------------------------------------
  31. VARIABLES
  32.  
  33. Node    *next
  34.         This is a pointer to the next Node in a List, or the right Node
  35.         in a Tree.
  36.  
  37. Node    *previous
  38.         This is a pointer to the previous Node in a List, or the left
  39.         Node in a Tree.
  40.  
  41. --------------------------------------------------------------------------
  42. METHODS
  43.  
  44. Node    (void)
  45.         Creates a Node with both pointers set to NULL.
  46.  
  47. --------------------------------------------------------------------------
  48. NODE.DOC                        Copyright (c) 1991 by James S. Clark
  49. ==========================================================================
  50.